package com.wicket.okrpbff.web.contorller;

import com.wicket.okrpbff.biz.service.PasswordService;
import com.wicket.okrpbff.biz.service.dto.req.BffUpdateChangePasswordReqDto;
import com.wicket.okrpbff.biz.service.dto.res.BffUpdateChangePasswordRespDto;
import com.wicket.okrpbff.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.wicket.okrframework.integration.FwBasePasswordClient;
import com.wicket.okrframework.integration.dto.UpdateChangePasswordRespDto;
import com.wicket.okrframework.integration.dto.UpdateChangePasswordReqDto;
import com.wicket.okrpbff.common.exception.Assert;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Api(value = "Password", tags = {"Password"})
@RestController
// @RequestMapping("/poms/password/")
public class PasswordController {
    @Autowired
    PasswordService passwordService;

    /**
   * B1-2修改密码（管理）
   * gen by moon at 8/10/2022, 3:39:40 AM
   */
    @PostMapping("/oms/platform/password/updateChangePassword")
    @ApiOperation(value = "B1-2修改密码（管理）", response = OkrResult.class)
    public OkrResult<BffUpdateChangePasswordRespDto> updateChangePassword(@RequestBody(required=false) @Validated BffUpdateChangePasswordReqDto reqDTO){
        return OkrResult.success(passwordService.updateChangePassword(reqDTO));
    }

}

